import 'virtual:svg-icons-register'

import SettingBox from './settingBox/index.vue'
import SvgIcon from './SvgIcon/index.vue'

import Dialog from './dy-dialog/index.vue' //dialog
import Export from './export/index.vue' //export
import Import from './importLog/index.vue'

//table
import Table from './table/index.vue' //table
import Search from './dy-search/index.vue' //search
import TableHeader from './table-header/index.vue' //tab-header
import DyTable from './dy-table/index.vue' //dy-table

//form
import FormContent from './form/index.vue' //form-content
import FormHeader from './form-header/index.vue'
import DyForm from './dy-form/index.vue' //dy-form

//choose
import Chooserole from './choose/chooserole.vue'
import ChooseComponent from './choose/chooseComponent.vue'
import ChooseDepartment from './choose/choosedepartment.vue'

//childTable
import ChildTable from './childTable/index.vue'

export default function (app) {
    app.component('setting-box', SettingBox)
    app.component('SvgIcon', SvgIcon)

    app.component('dy-dialog', Dialog)
    app.component('dy-export', Export)
    app.component('dy-import', Import)
    //table
    app.component('Table', Table)
    app.component('dy-search', Search)
    app.component('table-header', TableHeader)
    app.component('dy-table', DyTable)
    //form
    app.component('form-content', FormContent)
    app.component('form-header', FormHeader)
    app.component('dy-form', DyForm)
    //choose
    app.component('choose-role', Chooserole)
    app.component('choose-component', ChooseComponent)
    app.component('choose-department', ChooseDepartment)

    app.component('child-table', ChildTable)
}